import base from './base'
import RemarkNode from './remarkNode.vue'

class RemarkNodeView extends base.view {
	constructor(props) {
		super(props, RemarkNode)
	}

	// getAnchors() {
	// 	console.log(1)
	// 	return []
	// }


}

class RemarkNodeModel extends base.model {

	setAttributes() {
		this.width = 100
		this.height = 100
		this.text.editable = false
	}


	isAllowConnectedAsTarget() {
		return {
			isAllPass: false,
			msg: "注释节点不允许连线"
		};
	}

	isDrawView() {
		return false;
	}

	getNodeOutEdgeCode() {
		return "remark-line";
	}
	showPackageNodeIcon() {
		return false;
	}
	showPauseNodeIcon() {
		return false;
	}

}

export default {
	type: 'remark-node',
	model: RemarkNodeModel,
	view: RemarkNodeView
}
